[Errno 10061] No connection could be made because the target machine actively refused it
Posted
by
user551717
on Stack Overflow
See other posts from Stack Overflow
or by user551717
Published on 2010-12-26T00:39:56Z
Indexed on
2010/12/26
0:54 UTC
Read the original article
Hit count: 213
I've tried to connect to my local machine every time I try and run my program. I am a nub, so it's probably a simple mistake somewhere.
def connect(self):
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.conn.connect((self.host,self.port))
That is the code causing the error. The host and port are defined. Why is it giving me this error report?
[Errno 10061] No connection could be made because the target machine actively refused it
© Stack Overflow or respective owner